//
//  FoncusOnBottomView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/4.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "FoncusOnBottomView.h"

@implementation FoncusOnBottomView

-(id)initWithFrame:(CGRect)aFrame inSuperView:(UIView *)aSuperView{
    if (self = [super initWithFrame:aFrame inSuperView:aSuperView]) {
        self.backgroundColor = [UIColor whiteColor];
        GLGWView * lineView = [[GLGWView alloc] initWithInSuperView:self];
        lineView.backgroundColor = [UIColor colorWithHexString:@"#EAEAEA"];
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.equalTo(self);
            make.height.equalTo(@1);
        }];
        //
        GLGWButton * allSelectBut = [[GLGWButton alloc] initWithTitleLableFontType:SYSTEMFONT(14) titleColor:kColor_Rule_Black inSuperView:self];
//        allSelectBut.backgroundColor = kRandomColor;
        allSelectBut.title = @"全选";
        [allSelectBut mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.bottom.equalTo(self);
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(85)));
        }];
        //
        GLGWButton * delegateBut = [[GLGWButton alloc] initWithTitleLableFontType:SYSTEMFONT(14) titleColor:kColor_Rule_Black inSuperView:self];
        delegateBut.title = @"删除";
//        delegateBut.backgroundColor = kRandomColor;
        [delegateBut mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.bottom.top.equalTo(self);
            make.width.equalTo(allSelectBut);
        }];
    }
    return self;
}

@end
